package com.mo.ld.activity.animation

import android.os.Bundle
import com.mo.ld.databinding.ActAsynAnimBinding
import com.mo.lib.ui.activity.BaseVbActivity
import com.mo.lib.utils.anim.AsynAnimUtil
import com.mo.lib.utils.setClick

/**
 * @ author：mo
 * @ data：2021/12/14:13:30
 * @ 功能：
 */
class AsynAnimUtilVbActivity : BaseVbActivity<ActAsynAnimBinding>() {

    override fun initData() {
    }

    override fun initView(savedInstanceState: Bundle?) {
        viewBinding.ivAsynAnim.setClick {

            AsynAnimUtil.instance.startAnim(this@AsynAnimUtilVbActivity, viewBinding.ivAsynAnim.animate()
                .scaleX(2f)
                .scaleY(2f)
                //                            .translationXBy(200f)
                //                            .translationYBy(200f)
                .setDuration(1000))
        }

    }
}